package librairies.liste;

import static org.junit.Assert.assertTrue;
import librairies.liste.interfaces.IIterateur;
import librairies.liste.interfaces.IListeE;
import librairies.liste.list.ListeDCE;

import org.junit.Test;

public class IterateurTest
{
	@Test
	public void test()	//ok
	{
		IListeE<String> list = new ListeDCE<String>();
		list.add("un").add("deux");
		
		IIterateur<String> it = list.iterator();
		
		assertTrue(it.next().equals("un"));
		it.hasNext();
		assertTrue(it.next().equals("deux"));
	}
}
